<?php

	function getAllUser(){
		global $db;
		try {
			$q = $db->query("SELECT * FROM user");
			return ($q->rowCount() >= 1) ? $q->fetch(PDO::FETCH_ASSOC) : 'false';
		}
		catch(PDOException $e){
			return $e->getMessage();
		}
	}
?>